]> AND Private Git Repository - these_gilles.git/blob - DOCS/Scalable and Interactive Segmentation and Visualization of Neural Processes in EM Datasets_files/large-obj-scrollbars.min.js
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
modif finale lnivs + keywords
[these_gilles.git] / DOCS / Scalable and Interactive Segmentation and Visualization of Neural Processes in EM Datasets_files / large-obj-scrollbars.min.js
1 if(typeof jQuery!=="undefined"&&typeof NcbiLargeObjScrollBars=="undefined"){var NcbiLargeObjScrollBars=function(g){var j={selector:"div.large_tbl",containerSel:".table",stepSize:100};var e=jQuery("meta[name=ncbi_report]").attr("content");if(e=="printable"){return}var a=600;var d={};var h;jQuery.fn.setLargeObjScrollBars=function(){var m=this;h=Math.max(parseInt(jQuery(window).height())*0.8,a);var n=0;var l=m.length;k();function k(){for(var o=0;o<j.stepSize;++o){b(m.eq(n++));if(n>=l){break}}if(n<l){window.setTimeout(k,0)}}return m};function b(p){var n=g(p);if(!n.data("visited")){console.info("Setting initial values of overflow");n.data("visited",true);n.data("init-overflow-x",n.css("overflow-x"));n.data("init-overflow-y",n.css("overflow-y"))}var l=n.parent().closest(j.containerSel);if(l.length==1){var o=l.width();var k=n.children().outerWidth(true);var m=n.children().outerHeight(true);var q={width:"auto",height:"auto","overflow-x":n.data("init-overflow-x"),"overflow-y":n.data("init-overflow-y")};if(k>o){q.clear="both";q.width=o+"px";q["overflow-x"]="scroll";if(m>h){q.height=h+"px";q["overflow-y"]="scroll"}}n.css(q);if(k>o){c(n)}else{i(n)}}}function c(l){var k=l.parent();var n=k.attr("id");if(!n){return}var m=d[n];if(typeof m=="undefined"||m==null){m=k.children(".large-table-link");if(m.length==0){m=null}}if(typeof m=="object"&&m){m.css("display","block");if(!d[n]){d[n]=m}}}function i(k){var m=k.parent().attr("id");if(!m){return}var l=d[m];if(typeof l=="object"&&l){l.css("display","none")}}function f(k){g.extend(true,j,k)}g(window).load(function(){g(j.selector).setLargeObjScrollBars()});g(window).resize(function(){g(j.selector).setLargeObjScrollBars()});return{setOptions:f}}(jQuery)};